/**路由太长时可以切成小块 **/

import Layout from '@/layout'

const componentsRouter = {
    path: '/components',
    component: Layout,
    redirect: 'noRedirect',
    name: 'ComponentDemo',
    meta: {
        title: '组件库预览',
        icon: 'component'
    },
    children: [{
        path: 'countTo',
        component: () =>
            import ('@/views/componentsDemo/countTo'),
        name: 'countTo',
        meta: { title: '计数器' }
    },{
        path: 'barCode',
        component: () =>
            import ('@/views/componentsDemo/barCode'),
        name: 'barCode',
        meta: { title: '条形码' }
    }, {
        path: 'backToTop',
        component: () =>
            import ('@/views/componentsDemo/backToTop'),
        name: 'backToTop',
        meta: { title: '返回顶部' }
    }, {
        path: '/ceshi',
        name: 'ceshi',
        meta: { title: '测试' },

        component: () =>
            import ('@/views/componentsDemo/SingIeImage'),
    }, {
        path: 'avatarUpload',
        component: () =>
            import ('@/views/componentsDemo/avatar-upload'),
        name: 'avatarUpload',
        meta: { title: '头像上传' }
    },{
        path: 'websocket',
        component: () =>
            import ('@/views/componentsDemo/websocket'),
        name: 'websocket',
        meta: { title: '双向传输' }
    }]
}

export default componentsRouter